package com.tanhua.model.vo;

import com.tanhua.model.testpaper.SoulOptions;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SoulOptionsVo implements Serializable {

    private String id; // 题目id
    private String option; // 题目

    public static SoulOptionsVo init(SoulOptions options){
        SoulOptionsVo soulOptionsVo = new SoulOptionsVo();
        soulOptionsVo.setId(options.getId().toString());
        soulOptionsVo.setOption(options.getOptions());
        return soulOptionsVo;
    }
}
